﻿using System;
using System.Collections.Generic;
using System.Text;

namespace UtilZ.Dotnet.WindowsDesktopEx.Themes
{
    /// <summary>
    /// 程序集中资源主题辅助类
    /// </summary>
    public class ThemesHelper
    {
        /// <summary>
        /// 获取程序集中资源字典使用demo
        /// </summary>
        /// <returns></returns>
        public static string GetThemesResourceDictionaryMergedDemo()
        {
            return @"<Window.Resources>
                        <ResourceDictionary>
                            <ResourceDictionary.MergedDictionaries>
                                <ResourceDictionary Source=""pack://application:,,,/UtilZ.Dotnet.WindowsDesktopEx;component/Themes/MultiComboBoxStyle.xaml"" />
                            </ResourceDictionary.MergedDictionaries>
                        </ResourceDictionary>
                    </Window.Resources>";
        }

        /// <summary>
        /// 获取程序集中资源字典使用demo
        /// </summary>
        /// <returns></returns>
        public static string GetThemesResourceDictionaryUseDemo()
        {
            return @"<ComboBox Margin=""5"" 
                  Style = ""{StaticResource ComboBoxMultiSelectemItemsStyle}""
                  ItemsSource = ""{Binding Path=ProjectInfos}""
                  Text = ""{Binding Path=ProjectInfos.SelectedItemsText}""
                  Width = ""200"" /> ";
        }


        /// <summary>
        /// ComboBox多选项样式Key
        /// </summary>
        public const string ComboBoxMultiSelectemItemsStyleKey = "ComboBoxMultiSelectemItemsStyle";
    }
}
